package com.da.springcloud.myhandler;

import com.alibaba.csp.sentinel.slots.block.BlockException;

import com.da.springcloud.entities.CommonResult;
import com.da.springcloud.util.ResultUtil;

/**
 * @author JokerDa.
 * @date 2021/1/16 9:33
 * Description:
 */
public class CustomerBlockHandler {

    public static CommonResult handlerException(BlockException exception) {
        return ResultUtil.error("客户自定义，global handlerException---1");
    }

    public static CommonResult handlerException2(BlockException exception) {
        return ResultUtil.error("客户自定义，global handlerException---2");
    }
}
